using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Product.Elec.TransmissionGIS
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {

        }
       

        private void menuShowHideLeft_Click(object sender, EventArgs e)
        {
            bool boolPanel1Collapsed = mainSplitContainer.Panel1Collapsed;

            if (boolPanel1Collapsed == false)
            {
                mainSplitContainer.Panel1Collapsed = true;
            }
            else
            {
                mainSplitContainer.Panel1Collapsed = false;
            }           

        }

        private void menuSelectGeometry_Click(object sender, EventArgs e)
        {

        }

        private void menuShowHideOvervew_Click(object sender, EventArgs e)
        {
            bool boolPanel2Collapsed = secondarySplitContainer.Panel2Collapsed;

            if (boolPanel2Collapsed == false)
            {
                secondarySplitContainer.Panel2Collapsed = true;
            }
            else
            {
                secondarySplitContainer.Panel2Collapsed = false;
            }
            
        }

        private void menuExitApp_Click(object sender, EventArgs e)
        {
            //exit the application
            Application.Exit();
        }

        private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            //exit the application
            Application.Exit();
        }
    }
}